<?php get_header(); ?>

	<div id="content" class="archivecolumn">

		<?php if (have_posts()) : ?>

			<?php /* If this is a category archive */ if (is_category()) { ?>
			<h2 class="archivetitle"><?php _e('Filed under:', 'bito'); echo ' ', single_cat_title(); ?></h2>

			<?php /* If this is a tag archive */ } elseif (function_exists('is_tag') && is_tag()) { ?>
			<h2 class="archivetitle"><?php _e('Tag', 'bito'); echo ': ', single_tag_title(); ?></h2>

			<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
			<h2 class="archivetitle"><?php _e('Archives', 'bito'); ?> &ndash; <?php the_time('F j, Y'); ?></h2>

			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
			<h2 class="archivetitle"><?php _e('Archives', 'bito'); ?> &ndash; <?php the_time('F, Y'); ?></h2>

			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
			<h2 class="archivetitle"><?php _e('Archives', 'bito'); ?> &ndash; <?php the_time('Y'); ?></h2>

			<?php /* If this is a search */ } elseif (is_search()) { ?>
			<h2 class="archivetitle"><?php _e('Search Results', 'bito'); ?></h2>

			<?php /* If this is an author archive */ } elseif (is_author()) { ?>
			<h2 class="archivetitle"><?php _e('Archives', 'bito'); ?> &ndash; <?php _e('Author', 'bito'); ?></h2>

			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
			<h2 class="archivetitle"><?php _e('Archives', 'bito'); ?></h2>
			<?php } ?>

			<?php while (have_posts()) : the_post(); ?>
				<?php get_template_part( 'content', get_post_format() ); ?>
			<?php endwhile; ?>

				<p>
					<span class="next"><?php previous_posts_link(__('Next page', 'bito')) ?></span>
					<span class="previous"><?php next_posts_link(__('Previous page', 'bito')) ?></span>
				</p>

		<?php else : ?>

				<h2><?php _e('Page not found', 'bito'); ?></h2>
				<p><?php _e('Sorry, no posts matched your criteria.', 'bito'); ?></p>

		<?php endif; ?>

	</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
